// Material Icons

@font-face {
    font-family: 'itsIcons';
    font-style: normal;
    font-weight: 400;
    src: url(font/itsIcons/itsIcons.eot); /* For IE6-8 */
    src: local('itsIcons'),
         local('itsIcons'),
        //  url(fonts/itsIcon/itsIcons.woff2) format('woff2'),
         url(font/itsIcons/itsIcons.woff) format('woff'),
         url(font/itsIcons/itsIcons.ttf) format('truetype');
}
  
.itsIcons {
    font-family: 'itsIcons';
    font-weight: normal;
    font-style: normal;
    font-size: 16px;  /* Preferred icon size */
    text-align: center;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: 'liga';
}

// 圆形样式，常用于地图 - 默认蓝色-交通设置的正常状态
.itsIcons.itsIcons-circle {
    color: #fff!important;
    background: #1f58c8!important;
    width: 20px;
    height: 20px;
    font-size: 18px;
    border: 2px solid #fff!important;
    border-radius: 50%;
    text-align: center;
    line-height: 1;
    box-shadow: 0px 2px 4px rgba(0,0,0,0.25);
    position: relative;
}

// 常用动画帧
// 错误提醒
@keyframes itsIcon-err {
    0% {
        background: @colorRed;
        // opacity: 0.5;
    }
    40%, 60% {
        background: @colorOrange;
        transform: scale(1.25);
        opacity: 1;
    }
    100% {
        background: @colorRed;
        // opacity: 0.5;
    }
}
// 背景闪烁
@keyframes itsIcon-flash {
    0% {
        background: @colorRed;
    }
    40%, 60% {
        background: @colorYellow;
    }
    100% {
        background: @colorRed;
    }
}
// 跳跃提醒
@keyframes itsIcon-bounce {
    from, 20%, 53%, 80%, to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }

    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }

    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -10px, 0);
    }

    90% {
        transform: translate3d(0,-4px,0);
    }
}
// 跳跃提醒
.itsIcons.itsIcons-bounce {
    animation-duration: 1.25s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-name: itsIcon-bounce;
    transform-origin: center bottom;
    
}
// 背景闪烁提醒
.itsIcons.itsIcons-flash {
    animation-duration: 1.25s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-name: itsIcon-flash;
    transform-origin: center bottom;
    
}


// 按点位类型
// 场所 - 如：收费站
.itsIcons-circle.itsIcons-location {
    background: #008047!important;
}
// 警力 - 警员、警车
.itsIcons-circle.itsIcons-police {
    background: #199e9e!important;
}
// 事件
.itsIcons-circle.itsIcons-event {
    background: #edb611!important;
}
// 辅助地址 - 景点
.itsIcons-circle.itsIcons-scenic {
    background: #8d3b3b!important;
}


// 按点位状态
// 离线
.itsIcons-circle.itsIcons-off {
    background: #b2b2b2!important;
}
// 异常-红点
.itsIcons-circle.itsIcons-err:after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 6px;
    height: 6px;
    background: @colorRed!important;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0px 1px 2px rgba(0,0,0,0.5);
    // 闪烁动画
    animation-duration: 1.75s;
    animation-fill-mode: both;
    animation-iteration-count: infinite;
    animation-name: itsIcon-err;

}


// 按照iYox色彩设置颜色
.itsIcons-circle.itsIcons-gray {
    background: #b2b2b2!important;
}
.itsIcons-circle.itsIcons-blue {
    background: @colorBlue!important;
}
.itsIcons-circle.itsIcons-green {
    background: @colorGreen!important;
}
.itsIcons-circle.itsIcons-red {
    background: @colorRed!important;
}
.itsIcons-circle.itsIcons-yellow {
    background: @colorYellow!important;
    color: #402f00!important;
}
.itsIcons-circle.itsIcons-orange {
    background: @colorOrange!important;
}
.itsIcons-circle.itsIcons-purple {
    background: @colorPurple!important;
}


// 尺寸 circle最小就是默认的24px
.itsIcons.itsIcons-20 {
    font-size: 20px;
}
.itsIcons.itsIcons-24 {
    font-size: 24px;
}
.itsIcons-circle.itsIcons-24 {
    width: 20px;
    height: 20px;
    line-height: 20px;
    font-size: 18px;
}
.itsIcons.itsIcons-28 {
    font-size: 28px;
}
.itsIcons-circle.itsIcons-28 {
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 22px;
}
.itsIcons.itsIcons-32 {
    font-size: 32px;
}
.itsIcons-circle.itsIcons-32 {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 26px;
}
.itsIcons.itsIcons-36 {
    font-size: 36px;
}
.itsIcons-circle.itsIcons-36 {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 26px;
    border-width: 3px;
}
.itsIcons.itsIcons-40 {
    font-size: 40px;
}
.itsIcons-circle.itsIcons-40 {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 30px;
    border-width: 3px;
}
.itsIcons.itsIcons-44 {
    font-size: 44px;
}
.itsIcons-circle.itsIcons-44 {
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 34px;
    border-width: 3px;
}
.itsIcons.itsIcons-48 {
    font-size: 48px;
}
.itsIcons-circle.itsIcons-48 {
    width: 42px;
    height: 42px;
    line-height: 42px;
    font-size: 38px;
    border-width: 3px;
}
.itsIcons.itsIcons-52 {
    font-size: 52px;
}
.itsIcons-circle.itsIcons-52 {
    width: 44px;
    height: 44px;
    line-height: 44px;
    font-size: 38px;
    border-width: 4px;
}
.itsIcons.itsIcons-56 {
    font-size: 56px;
}
.itsIcons-circle.itsIcons-56 {
    width: 48px;
    height: 48px;
    line-height: 48px;
    font-size: 44px;
    border-width: 4px;
}
.itsIcons.itsIcons-60 {
    font-size: 60px;
}
.itsIcons-circle.itsIcons-60 {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 46px;
    border-width: 5px;
}
.itsIcons.itsIcons-64 {
    font-size: 64px;
}
.itsIcons-circle.itsIcons-64 {
    width: 54px;
    height: 54px;
    line-height: 54px;
    font-size: 50px;
    border-width: 5px;
}
.itsIcons.itsIcons-128 {
    font-size: 128px;
}
.itsIcons-circle.itsIcons-128 {
    width: 108px;
    height: 108px;
    line-height: 108px;
    font-size: 96px;
    border-width: 10px;
}